#include "Vec2.h"


Vec2::Vec2()
{
}
Vec2::Vec2(int row, int collumn){
	this->row = row;
	this->collumn = collumn;
}

Vec2::~Vec2()
{
}
int Vec2::getRow() const{
	return row;
}
int Vec2::getCollumn() const{
	return collumn;
}
bool operator ==( Vec2 a,  Vec2 b){
	if (a.getRow() == b.getRow() && a.getCollumn() == b.getCollumn())
		return true;
	return false;
}
ostream& operator<<(ostream &os, const Vec2 v){
	os << "(" << v.getRow() << "," << v.getCollumn() << ")";
	return os;

}
Vec2 Vec2::add(Vec2 v){
	return Vec2(row + v.getRow(), collumn + v.getCollumn());
}